package com.iknow.view.widget;

import android.app.Dialog;
import android.content.Context;
import android.net.Uri;
import android.view.Window;
import android.view.WindowManager.LayoutParams;
import android.webkit.WebView;

public class AuthorizationWeiboDialog extends Dialog
{
  private WebView mWebView;

  public AuthorizationWeiboDialog(Context paramContext)
  {
    super(paramContext, 2131427382);
    setCanceledOnTouchOutside(true);
    setContentView(2130903042);
    WindowManager.LayoutParams localLayoutParams = getWindow().getAttributes();
    localLayoutParams.gravity = 17;
    localLayoutParams.dimAmount = 0F;
    getWindow().setAttributes(localLayoutParams);
    initView();
  }

  private void initView()
  {
    this.mWebView = ((WebView)findViewById(2131296270));
  }

  public void show(Uri paramUri)
  {
    this.mWebView.loadUrl(paramUri.toString());
    super.show();
  }
}